package sample.client;

import com.google.gwt.core.client.EntryPoint;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.RootPanel;
import com.sencha.gxt.widget.core.client.container.SimpleContainer;
import com.sencha.gxt.widget.core.client.container.Viewport;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class ClientManager implements EntryPoint
{
  WidgetInjector injector = GWT.create(WidgetInjector.class);

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
    AppController appController = injector.getAppViewer();
    SimpleContainer cp = new SimpleContainer();
    appController.go(cp);

    Viewport viewport = new Viewport();
    viewport.setWidget(cp);

    RootPanel.get().add(viewport);
  }
}
